﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Script.Serialization;

namespace Component.Utilities
{
	public class ObjectSerializer
	{
		private static JavaScriptSerializer ser = new JavaScriptSerializer();
		public static StringBuilder SerializeToJson(object obj)
		{
			StringBuilder sb=new StringBuilder();
			ser.Serialize(obj,sb);
			return sb;
		}
	}
}
